from django.db import models

# Create your models here.
# 定义一个学生模型
class Student(models.Model):
    id = models.AutoField(primary_key=True, verbose_name="学号", help_text="学号", unique=True, editable=False)
    name = models.CharField(max_length=20)
    age = models.IntegerField()
    email = models.EmailField()
    gender = models.CharField(max_length=10)
    address = models.CharField(max_length=50)
    phone = models.CharField(max_length=11)
